<%--
  Created by IntelliJ IDEA.
  User: lenovo
  Date: 2022-04-25
  Time: 21:35
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java"
isELIgnored="false" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html>
<head>
    <title>待审查内容</title>
</head>
<body>
<table>
  <tr>
    <td colspan="5"><a href="${pageContext.request.contextPath}/admin/home">返回上一级</a></td>
  </tr>
  <tr>
    <th>内容ID</th>
    <th>发布人</th>
    <th>内容标题</th>
    <th>审批通过</th>
    <th>删除内容</th>
  </tr>
  <c:forEach items="${newsList}" var="news">
    <tr>
      <td><a href="${pageContext.request.contextPath}/news/home/${news.id}">${news.id}</a></td>
      <td>${news.author.username}</td>
      <td>${news.title}</td>
      <td><a href="${pageContext.request.contextPath}/news/pass/${news.id}">通过</a></td>
      <td><a href="${pageContext.request.contextPath}/news/delete/${news.id}">删除</a></td>
    </tr>
  </c:forEach>

</table>
</body>
</html>
